package cn.ffcs.uec.outStaffEncPunishTalentInputApply.action;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Components;

import cn.ffcs.raptornuke.plugin.common.zk.ctrl.BasePortletComposer;
import cn.ffcs.raptornuke.portal.theme.ThemeDisplay;
import cn.ffcs.uec.outStaffEncPunishTalentInputApply.action.bean.UecOutStaffEncInputApplyMainBean;
import cn.ffcs.uom.common.util.IPortletInfoProvider;

/**
 * 外包人员奖励信息录入Composer
 * @author liuxiaodong
 *
 */
@Controller
@Scope("prototype")
public class UecOutStaffEncInputApplyMainComposer extends BasePortletComposer implements IPortletInfoProvider {

	private static final long serialVersionUID = -4964990257588211227L;
	
	private UecOutStaffEncInputApplyMainBean bean = new UecOutStaffEncInputApplyMainBean();
	
	@Override
	public String getPortletId() {
		return super.getPortletId();
	}

	@Override
	public ThemeDisplay getThemeDisplay() {
		return super.getThemeDisplay();
	}
	
	@Override
	public void doAfterCompose(Component comp) throws Exception {
		super.doAfterCompose(comp);
		Components.wireVariables(comp, bean);
		bean.getUecOutStaffEncInputListboxExt().setPortletInfoProvider(this);
	}
}
